package com.md.api.dao;

import com.md.api.entity.ShoppingChangeOrder;
import com.md.api.entity.ShoppingRefundOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface ShoppingChangeOrderMapper {

    int deleteByPrimaryKey(String changeNo);

    int insert(ShoppingChangeOrder record);

    List<ShoppingChangeOrder> selectAll();

    int update(ShoppingChangeOrder record);

    List<ShoppingChangeOrder> getNotConfirmOrder();
    List<ShoppingChangeOrder> sysList(@Param("changeStatus")Integer changeStatus, @Param("orderNo") String orderNo,
                                      @Param("changeNo")String changeNo, @Param("createTimeStart")  String createTimeStart,
                                      @Param("createTimeEnd") String createTimeEnd);

    ShoppingChangeOrder getByChangeNo(@Param("changeNo")String changeNo);

    ShoppingChangeOrder getDetail(@Param("orderNo")String orderNo, @Param("skuId")String skuId);
}